{% extends "base.html" %}

{% block pagetitle %}{{ form.title }}{% endblock %}

{% block pageheader %}{{ form.title }}{% endblock %}

{% block keywords %}{% endblock %}

{% block description %}{% endblock %}

{% block content %}

{% if question %}
<div class="alert alert-info related">
    <p>The new one-liner will be linked to the following question as a possible answer:</p>
    {% with 1 as nobuttons %}
    {% include 'main/elements/question.html' %}
    {% endwith %}
</div>
{% endif %}

{% if oneliner %}
<div class="alert alert-info related">
    <p>The new one-liner will be linked to the following one-liner as an alternative:</p>
    {% with 1 as nobuttons %}
    {% include 'main/elements/oneliner.html' %}
    {% endwith %}
</div>
{% endif %}

{% include 'main/elements/please_login.html' %}

<ul>
    <li>Before you post, please do a quick search to confirm the one-liner does not exist yet.</li>
    <li>Please post only non-trivial and really useful, interesting or awesome one-liners.</li>
    <li>The <strong>Explanation</strong> is very important. The purpose of this site is to teach, not to show off.</li>
</ul>

{% include 'main/elements/oneliner_edit_form.html' %}

{% endblock %}

{% block ready %}
	$('#id_summary').focus();
{% endblock %}
